// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'normalize.css'
import FastClick from 'fastclick'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import api from './api'
import store from './store'
import {msg} from "./util";
import CONFIG from './config'
// require('./util/vconsole')

Vue.use(MintUI);

FastClick.attach(document.body);
Vue.config.productionTip = false;

Vue.prototype.$api = api;
Vue.prototype.$msg = msg;
Vue.prototype.isWeixin = CONFIG.isWeixin;


let oScript = document.createElement('script');
oScript.src = 'http://cdn.huasth.cn/js/TCaptcha.js';
document.getElementsByTagName('body')[0].appendChild(oScript);

let height;
window.onload =function(){
  height = document.body.clientHeight;
};
window.onresize = function(){
  document.body.style.height = height+'px';
};

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
